#include "widget.h"
#include "ui_widget.h"


QString question[] =
{
    "老公的生日是什么时辰",
    "老公的身高是",
    "老公和易烊千玺谁帅",
    "用最美的话语夸赞老公"
};

QString answer1[] =
{
    "A.子时",
    "B.丑时",
    "C.未时",
    "D.酉时"
};

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    dialog = new QDialog(this);//创建对话框对象

}

Widget::~Widget()
{
    delete ui;
    delete dialog;
}



void Widget::Correct()
{

}

void Widget::UnCorrect()
{

}

void Widget::connect2Dialog()
{
    connect(ui->pushButton_A,&QPushButton::clicked,dialog,&QDialog::open);

}
